﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.MD主数据
{
    /// <summary>
    /// 工作站人员资源表
    /// </summary>
    public class MdWorkstationWorker : Entity<int>
    {
        /// <summary>
        /// 工作站ID
        /// </summary>
        [Required]
        public long WorkstationId { get; set; }

        /// <summary>
        /// 岗位ID
        /// </summary>
        [Required]
        public long PostId { get; set; }

        /// <summary>
        /// 岗位编号
        /// </summary>
        [Required]
        [MaxLength(64)]
        public string PostCode { get; set; } = string.Empty;

        /// <summary>
        /// 岗位名称
        /// </summary>
        [Required]
        [MaxLength(255)]
        public string PostName { get; set; } = string.Empty;

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; } = 1;

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(500)]
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(64)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [MaxLength(64)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}

